#ifndef __COMMON_H__
#define __COMMON_H__

typedef unsigned char uchar;
#define status_set_falg(s, bit) (s |= (1 << bit))
#define status_del_flag(s, bit) (s &= ~(1 << bit))
#define status_cek_flag(s, bit) ((s & (1 << bit)) != 0)
void dump_flash(void *data, int len);
void dump_array(char *data[], int len);
void dump_oled(uchar (*data)[2], int len);
void delay_ms(int ms);
uint32_t get_random(uint32_t random_seed, uint32_t min, uint32_t max);
uint8_t random_event(uint32_t cnt, uint8_t yes_present, uint8_t up);
/* one bmp size */
#define BMP_16_16_SIZE 126


//digimon_api.h
#endif